﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Web;
using System.Data;
using System.Globalization;

using OgilvyOne.Model;
using OgilvyOne.BLL;
using OgilvyOne.UKNow.Model;
using OgilvyOne.UKNow.IDAL;
using OgilvyOne.UKNow.DAL;
using OgilvyOne.UKNow.DALFactory;
using OgilvyOne.UKNow.Globalization;
using OgilvyOne.UKNow.Utility;
using ECCIT;
using ECCIT.Data;

namespace OgilvyOne.UKNow.BLL
{
    public  class SponsorTemplateModel : CommonModel
    {
        public int LanguageID { get; set; }
        public SponsorModel SponsorModel { get; set; }

        public SponsorTemplateModel(CmsVo vo)
            : base(vo)
        {
            if (vo is CmsVoWrapper)
            {
                this.LanguageID = ((CmsVoWrapper)vo).LanguageID;
                this.SponsorModel = ((CmsVoWrapper)vo).SponsorModel;
            }
        }
        /// <summary>
        /// 获取活动内容页的活动标题
        /// </summary>
        /// <returns></returns>
        public string GetSponsorTitle() //
        {
            //AccountController ac = new AccountController(LanguageID);
            //ac.EventInfo = this.EventsModel;
            string title = (this.SponsorModel == null || this.SponsorModel.Name == null) ? string.Empty : this.SponsorModel.Name;
            return title;
        }

        public string GetSponsorDetail()
        {
            string detail = (this.SponsorModel == null || this.SponsorModel.Detail == null) ? string.Empty : this.SponsorModel.Detail;
            return detail;
        }
    }
}
